import Login from "../pages/admins/login.js";
import Reg from "../pages/admins/reg.js";
import Info from './info.js'
var routes = {
    '/login': () => {
        $('body').attr("id", "login-info");
        new Login();
    },
    '/reg': () => {
        $('body').attr("id", "reg-info");
        new Reg();
    },
    ...Info
};
var router = Router(routes).configure({ recurse: 'forward' });//开通嵌套路由
export default {
    init() {
        router.init();
        location.hash = location.hash || '/login'
    }
}
